import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-05-18
 * Time: 19:39
 */
public class demo11 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./output.txt")) {
            writer.write("hello world");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
